package com.changzhi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.changzhi.ldyl.model.UserDressUp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户装扮表 Mapper 接口
 * </p>
 *
 * @author Alfred
 * @since 2020-06-17
 */
public interface UserDressUpMapper extends BaseMapper<UserDressUp> {

	boolean isExistDressUp(@Param("userId") String userId,@Param("dressUpId")  Integer dressUpId);

	boolean isExistDressUp2(@Param("userId") String userId,@Param("type")  Integer type);

	List<UserDressUp> selectDressUpMaxList(@Param("userId") String userId, @Param("dressUpId") Integer dressUpId, @Param("type") Integer type);

	void updateDressUpTime(@Param("userId")String userId, @Param("dressUpId") Integer dressUpId, @Param("duration") Integer duration);


	List<UserDressUp> selectLabelMaxList(@Param("userId") String userId, @Param("dressUpId") Integer dressUpId, @Param("type") Integer type);

    void updateChargeGiftDressUpTime(@Param("userId")String userId, @Param("dressUpId") Integer dressUpId, @Param("duration") Integer duration);
}
